Skip to content

feat(discord-bot): mid-turn queue default + steer/queue lifecycle#67

Merged
patroza merged 2 commits into
fork/changesfrom
feat/discord-followup-steer-default
Jul 26, 2026
Merged

feat(discord-bot): mid-turn queue default + steer/queue lifecycle#67
patroza merged 2 commits into
fork/changesfrom
feat/discord-followup-steer-default

Conversation

@patroza

@patroza patroza commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Summary

Discord mid-turn follow-ups align with server queue-by-default, with explicit overrides and a light lifecycle UX:

Compose time

Input Effect
Bare @Omegent / /ask mid-turn Queue (default)
--steer or /omegent steer … Inject into active turn now
--queue or /omegent queue … Force park (same as default)

Lifecycle

Signal Effect
📥 reaction on user message Badge: parked in server queue
User deletes that message thread.queue.remove for that item
/omegent steernow Steer all server-queued messages FIFO

Implementation notes

  • After busy-thread startTurn, only call thread.queue.steer when delivery is steer
  • Otherwise register Discord message → T3 message mapping and add 📥
  • MESSAGE_DELETE clears mapping + removes from server queue
  • steernow uses server queuedMessages (authoritative); registry cleans badges
  • In-memory badge map (survives process restarts poorly; server queue remains source of truth)

Test plan

  • Unit: mentions, channel pin, slash command names, queue registry (37 tests)
  • apps/discord-bot typecheck
  • Live Discord: mid-turn mention gets 📥; delete cancels; --steer injects; /steernow flushes

@patroza patroza changed the title feat(discord-bot): mid-turn steer default + --steer/--queue feat(discord-bot): mid-turn queue default + steer/queue lifecycle Jul 25, 2026
@patroza
patroza force-pushed the feat/discord-followup-steer-default branch from 191be7e to c1af4b2 Compare July 26, 2026 06:24
patroza added 2 commits July 26, 2026 06:41
After server queue-by-default, Discord follow-ups would park instead of
steering. Restore historical steer-by-default for busy threads, and document
--steer / --queue (and slash options) so users can force either path.
Keep --steer/--queue and add slash /steer /queue /steernow. Mid-turn
follow-ups park server-side by default, badge the user message with 📥,
remove on message delete, and flush the queue with /omegent steernow.
@patroza
patroza force-pushed the feat/discord-followup-steer-default branch from c1af4b2 to 2cfa398 Compare July 26, 2026 06:41
@patroza
patroza merged commit 45a81cd into fork/changes Jul 26, 2026
8 checks passed
@patroza
patroza deleted the feat/discord-followup-steer-default branch July 26, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant